package com.imooc.ecommerce.dao;

import com.imooc.ecommerce.entity.EcommerceBalance;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * <p>EcommerceBalance Dao 接口定义
 *
 * @author Yaxi.Zhang
 * @since 2022/11/12 10:31
 */
public interface EcommerceBalanceDao extends JpaRepository<EcommerceBalance, Long> {
    /**
     * 根据 userId 查询 EcommerceBalance 对象
     */
    EcommerceBalance findByUserId(Long userId);
}
